<template>
  <h1>El-下拉选框组件</h1>
  <el-select placeholder="选一个你喜欢的城市" v-model="city" style="width: 50%;">
    <el-option label="北京" value="bj"></el-option>
    <el-option label="南京" value="nj"></el-option>
    <el-option label="郑州" value="zz"></el-option>
    <el-option label="重庆" value="cq"></el-option>
  </el-select>

  <h4>提交的值:{{city}}</h4>
</template>

<script setup>
  import {ref} from "vue";
  const city = ref('nj');
</script>

<style scoped>

</style>